# Contributor: breakdown breakdown.at.archlinux.dot.us

pkgname=tuxonice-userui
pkgver=1.0
pkgrel=1
pkgdesc="TuxOnIce userspace user interface"
url="http://www.tuxonice.net/"
license=("GPL")
install=tuxonice-userui.install
depends=()
arch=('i686' 'x86_64') 
makedepends=('libmng' 'libpng' 'libjpeg' 'zlib' 'lcms' 'freetype2-static')
options=('!makeflags')
source=(http://www.tuxonice.net/downloads/all/$pkgname-$pkgver.tar.gz \
        userui-install userui-hook)
md5sums=('37df358323076fc4882a6287087aaad6')
                                    
                  
build() {
  cd $startdir/src/$pkgname-$pkgver
  sed 's|^all: fbsplash usplash $(TARGETS)$|all: fbsplash $(TARGETS)|' -i Makefile
  sed 's|^MODULES = text fbsplash usplash$|MODULES = text fbsplash|' -i Makefile
  sed 's|-m 755|-D -m755|g' -i ./Makefile
  install -D -m644 $startdir/src/userui-install $startdir/pkg/lib/initcpio/install/userui
  install -D -m644 $startdir/src/userui-hook $startdir/pkg/lib/initcpio/hooks/userui
  make clean
  make LDFLAGS=-static || return 1
  make DESTDIR=$startdir/pkg PREFIX=/usr install
}
